home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000049_icon-group-sender _Sat Jun 17 17:06:58 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 19 Jun 1995 09:01:50 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: Sat, 17 Jun 1995 17:06:58 GMT
  4. From: john@nmt.edu (John Shipman)
  5. Message-Id: <1995Jun17.170658.29531@nmt.edu>
  6. Organization: Zoological Data Processing
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <3rpcmd$ie0@canopus.cc.umanitoba.ca>, <3rqsq6$g9s@lectura.CS.Arizona.EDU>
  9. Subject: &null as a general-purpose identity
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12.  
  13. Scott E Gilbert <scott@CS.Arizona.EDU> wrote:
  14. +--
  15. | Personally, I'd like to see the &null value act as a general purpose
  16. | identity for all of the operators except when used as a procedure call. For
  17. | example:
  18. |
  19. |   1 + &null           -> 1
  20. |   1 * &null           -> 0
  21. |   'abc' ++ &null      -> 'abc'
  22. |   "foo" || &null      -> "foo"
  23. |   [1,2,3] ||| &null   -> [1,2,3]
  24. |   &null(1, 2, 3)      -> Obscure Runtime Error: 169
  25. +--
  26.  
  27. Only if it's an option, and preferably not the standard option.
  28. I catch a lot of bugs with its current behavior.
  29. -- 
  30. John Shipman (js@cs.nmt.edu)
  31. ``Let's go outside and commiserate with nature.''  --Dave Farber
  32.